#!/bin/sh
# "if     else  " usage
# using this program to show your system's wervices.

echo "Now , the web services of this Linux system will be detect .... "
echo
# Detect www service
  web=`/usr/bin/pgrep httpd`
  if [ "$web" != ""  ]
  then 
	echo "The Web service is runing."

   else
	echo "The Web service is NOT running."
        /etc/rc.d/init.d/httpd start
   fi
# crontab -e
# */2  12-14 * * 1-5 script
